

using System;
using Abp.Application.Services.Dto;
using Abp.Domain.Entities.Auditing;
using System.ComponentModel.DataAnnotations;
using Yozeev.SystemConfig;
using System.Collections.Generic;

namespace Yozeev.SystemConfig.Dtos
{
    public class MenuDropDownDto 
    {
		public MenuDropDownDto(string _key,string _title)
		{
			this.key = _key;
			this.title = _title;
		}
		public MenuDropDownDto(string _key, string _title,bool _isLeaf)
		{
			this.key = _key;
			this.title = _title;
			this.isLeaf = _isLeaf;
		}
		/// <summary>
		/// key
		/// </summary>
		[Required(ErrorMessage = "key 不能为空")]
		public string key { get; set; }



		/// <summary>
		/// title
		/// </summary>
		[Required(ErrorMessage= "title 不能为空")]
		public string title { get; set; }



		/// <summary>
		/// 子菜单列表
		/// </summary>
		public List<MenuDropDownDto> children{ get; set; }



		/// <summary>
		/// isLeaf
		/// </summary>
		[Required(ErrorMessage = "isLeaf 不能为空")]
		public bool isLeaf { get; set; }
	}
}